package com.yuandian.management.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yuandian.api.management.entity.ConfNetTopologyComponentIp;
import com.yuandian.management.mapper.NetTopologyComponentMapper;
import com.yuandian.management.service.NetTopologyComponentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 组件IP配置表-Service实现
 * @author zfsn
 * @date 2023-3-16
 */
@Service
public class NetTopologyComponentServiceImpl extends ServiceImpl<NetTopologyComponentMapper, ConfNetTopologyComponentIp>
		implements NetTopologyComponentService {

	@Autowired
	private NetTopologyComponentMapper netTopologyComponentMapper;

	/**
	 * 分页查询
	 *
	 * @param confComponentIp 筛选条件
	 * @return 通用返回对象
	 */
	@Override
	public Page<ConfNetTopologyComponentIp> listPage(ConfNetTopologyComponentIp confComponentIp) {
		return netTopologyComponentMapper.listPage(new Page<>(confComponentIp.getPageNum(), confComponentIp.getPageSize()), confComponentIp);
	}
}